package com.tsing.wms.vo.req;

import com.tsing.wms.valid.AddGroup;
import com.tsing.wms.valid.UpdateGroup;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Null;

/**
 * @author TheTsing
 * @create 2022-04-13 21:17
 */
@Data
public class RegionReqVO {

    @Null(message = "新增时不能传入id", groups = {AddGroup.class})
    @NotBlank(message = "id不能为空", groups = {UpdateGroup.class})
    private String id;

    @ApiModelProperty("地区")
    @NotBlank(message = "地区不能为空", groups = {AddGroup.class})
    private String address;

    @ApiModelProperty("描述")
    private String description;

}
